package com.td.client.gui;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;

import com.td.core.obj.TDMap;
import com.td.core.obj.bullet.Bullet;

public class BulletRenderer implements TDMap.DrawParams {

	public static void draw(int sx, Bullet b, Graphics g) {
		
		float bx = sx + b.getRealPosition().getX();
		float by = b.getRealPosition().getY();
		float bs = b.getSize();
		
		if(bx + bs > sx  && bx < sx + TDMap.Screen.X) {
			g.setColor(Color.black);
			g.fillOval(bx, by, bs, bs);
		}
	}

}
